﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MuaChungDAO;
using MuaChungDAO;
using MuaChungDTO;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
namespace MuaChungDAO
{
    public class DiaChiDealhanlder
    {
        private DiaChiDAO data = new DiaChiDAO();
        private DiaChiDTO info = new DiaChiDTO();
        public static DataTable napTatCa()
        {
            return NhomMuaHandler.napTongQuat("select * from DiaChiDeal");
        }

        public static DataTable napTheoID(string dealId)
        {
            return NhomMuaHandler.napTongQuat("select * from DiaChiDeal where DealID = " + dealId);
        }

        public ArrayList getDSDiaChi()
        {
            return data.getDsDiaChi();
        }

        public ArrayList getDSDiaChiTheoID(string dealId)
        {

            return data.getDiaChiTheoID(dealId);
        }
    }
}
